<template>
  <div>
    <!-- 空白盒子 -->
    <div class="emptyBox" :v-show="empty">
      <van-empty
        class="custom-image"
        image="https://img.yzcdn.cn/vant/custom-empty-image.png"
        description="你暂时没有相关订单"
      />
    </div>
    <common-footer></common-footer>
  </div>
</template>

<script>
export default {
  data () {
    return {
      empty: false
    }
  },
  mounted () {
    this.getPaying()
  },
  methods: {
    async getPaying () {
      const { data: res } = await this.$http.get('/order/done')
      if (res.status === 1) {
        this.empty = true
      }
    }
  }
}
</script>

<style lang="less" scoped>
</style>
